import {ActionCode} from './actionCode';
import {Menu} from '@core/services/types';
import {InjectionToken} from "@angular/core";

/*定义菜单*/
export const MENU_TOKEN = new InjectionToken<Menu[]>('menu-token', {
  providedIn: 'root', factory(): Menu[] {
    return menuNav;
  }
})

const menuNav: Menu[] = [

  {
    title: '欢迎页',
    showIcon: true,
    icon: 'dashboard',
    open: false,
    selected: false,
    path: '/default/welcome',
    actionCode: ActionCode.UserManage,
  },
];
